﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AJAX simpel.aspx.cs" Inherits="Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="AJAXvoorbeeld" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        <table>
            <tr>
                <td>
                    Voornaam:
                </td>
                <td>
                    <asp:TextBox ID="txtVoornaam" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Achternaam:
                </td>
                <td>
                    <asp:TextBox ID="txtAchternaam" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Land:
                </td>
                <td>
                    <asp:DropDownList ID="ddlLand" runat="server">
                        <asp:ListItem Value="BE">België</asp:ListItem>
                        <asp:ListItem Value="NL">Nederland</asp:ListItem>
                        <asp:ListItem Value="andere">Andere</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    E-mail:
                </td>
                <td>
                    <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Paswoord:
                </td>
                <td>
                    <asp:TextBox ID="txtPaswoord" runat="server" TextMode="Password"></asp:TextBox>
                </td>
            </tr>
        </table>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                Ik wens commentaar te geven:<asp:RadioButtonList ID="CommentaarButtonList" runat="server"
                    Width="120px" RepeatDirection="Horizontal" AutoPostBack="true" 
                    onselectedindexchanged="CommentaarButtonList_SelectedIndexChanged">
                    <asp:ListItem>Ja</asp:ListItem>
                    <asp:ListItem Selected="True">Nee</asp:ListItem>
                </asp:RadioButtonList>
                <asp:Panel ID="CommentaarPanel" runat="server" Visible="false">
                    <asp:TextBox ID="txtCommentaar" runat="server" Rows="3" TextMode="MultiLine"></asp:TextBox>
                </asp:Panel>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:Button ID="Button1" runat="server" Text="Verzenden" />
    </div>
    <div>
        Deze webpagina werd ingeladen op:
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    </div>
    </form>
</body>
</html>
